import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: require('@/view/index.vue').default
  },
  {
    // 路由未匹配时
    path: '/:catchAll(.*)',
    component: require('@/view/404.vue').default
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router